import React, { useEffect } from 'react';
import { useSearchParams } from 'react-router-dom';

import s from './style.scss';

export default function Iframe() {
  const [search] = useSearchParams();

  return (
    <div className={s.root}>
      <iframe
        id="iframe"
        allow="payment"
        frameBorder="0"
        scrolling="auto"
        src={search.get('url')}
      />
    </div>
  );
}
